package com.isdepci.project.carbon.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.carbon.mapper.GreenCertificatesSellerMapper;
import com.isdepci.project.carbon.domain.GreenCertificatesSeller;
import com.isdepci.project.carbon.service.IGreenCertificatesSellerService;

/**
 * 绿证-售方挂牌情况Service业务层处理
 *
 * @author isdepci
 * @date 2025-05-28
 */
@Service
public class GreenCertificatesSellerServiceImpl implements IGreenCertificatesSellerService
{
    @Autowired
    private GreenCertificatesSellerMapper greenCertificatesSellerMapper;

    /**
     * 查询绿证-售方挂牌情况
     */
    @Override
    public GreenCertificatesSeller selectGreenCertificatesSellerById(Long id)
    {
        return greenCertificatesSellerMapper.selectGreenCertificatesSellerById(id);
    }

    /**
     * 查询绿证-售方挂牌情况列表
     */
    @Override
    public List<GreenCertificatesSeller> selectGreenCertificatesSellerList(GreenCertificatesSeller greenCertificatesSeller)
    {
        return greenCertificatesSellerMapper.selectGreenCertificatesSellerList(greenCertificatesSeller);
    }

    /**
     * 新增绿证-售方挂牌情况
     */
    @Override
    public int insertGreenCertificatesSeller(GreenCertificatesSeller greenCertificatesSeller)
    {
        return greenCertificatesSellerMapper.insertGreenCertificatesSeller(greenCertificatesSeller);
    }

    /**
     * 修改绿证-售方挂牌情况
     */
    @Override
    public int updateGreenCertificatesSeller(GreenCertificatesSeller greenCertificatesSeller)
    {
        return greenCertificatesSellerMapper.updateGreenCertificatesSeller(greenCertificatesSeller);
    }

    /**
     * 批量删除绿证-售方挂牌情况
     */
    @Override
    public int deleteGreenCertificatesSellerByIds(Long[] ids)
    {
        return greenCertificatesSellerMapper.deleteGreenCertificatesSellerByIds(ids);
    }

    /**
     * 删除绿证-售方挂牌情况信息
     */
    @Override
    public int deleteGreenCertificatesSellerById(Long id)
    {
        return greenCertificatesSellerMapper.deleteGreenCertificatesSellerById(id);
    }
}
